EMT Practice Test

1. Question Content...


Question List

Question1: After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Question2: Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

Question3: Which of the following file permissions belong to a symbolic link?

Question4: Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

Question5: When removing a package, which of the following dpkg options will completely remove the files including configuration files?

Question6: Which of the following commands shows the definition of a given shell command?

Question7: SIMULATION
Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?
killall -s _______ daemon

Question8: What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Question9: Which of the following commands lists all currently installed packages when using RPM package management?

Question10: SIMULATION
In which directory must definition files be placed to add additional repositories to yum?

Question11: Which of the following files, located in the user home directory, is used to store the Bash history?

Question12: Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Question13: SIMULATION
Which command will display messages from the kernel that were output during the normal boot sequence?

Question14: Which of the following commands moves and resumes in the background the last stopped shell job?

Question15: Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Question16: What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

Question17: Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)

Question18: Which of the following commands is used to change options and positional parameters for a running Bash?

Question19: Which of the following statements is correct when talking about /proc/?

Question20: Which of the following sequences in the vi editor saves the opened document and exits the editor?
(Choose TWO correct answers.)

Question21: What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

Question22: Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

Question23: Which RPM command will output the name of the package which supplied the file /etc/exports?

Question24: What is the default action of the split command on an input file?

Question25: Which of the following statements is correct regarding the command foo 1> bar?

Question26: SIMULATION
Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)

Question27: Which of the following command sets the Bash variable named TEST with the content FOO?

Question28: When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

Question29: Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

Question30: SIMULATION
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Question31: Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

Question32: Which of the following environment variables overrides or extends the list of directories holding shared libraries?

Question33: After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem.
Which of the following describes the resulting situation?

Question34: What is the output of the following command?
echo "Hello World" | tr -d aieou

Question35: When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)

Question36: SIMULATION
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)

Question37: What is the effect of the egrep command when the -v option is used?

Question38: Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

Question39: In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

Question40: From a Bash shell, which of the following commands directly executes the instruction from the file /usr/ local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

Question41: Which of the following commands is used to update the list of available packages when using dpkg based package management?

Question42: Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

Question43: What does the ? symbol within regular expressions represent?

Question44: Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

Question45: What is the default nice level when a process is started using the nice command?

Question46: Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Question47: Which of the following commands lists the dependencies of a given dpkg package?

Question48: SIMULATION
Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

Question49: Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Question50: After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)

Question51: In the vi editor, which of the following commands will copy the current line into the vi buffer?

Question52: Regarding the command:
nice -5 /usr/bin/prog
which of the following statements is correct?

Question53: What does the command mount -a do?

Question54: In compliance with the FHS, in which of the directories are man pages found?

Question55: Which of the following commands will reduce all consecutive spaces down to a single space?

Question56: Which of the following shell redirections will write standard output and standard error output to a file named filename?

Question57: Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Question58: SIMULATION
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

Question59: Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

Question60: Which of the following commands can be used to download the RPM package kernel without installing it?

Question61: SIMULATION
Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)

Question62: Which of the following commands can be used to create a USB storage media from a disk image?

Question63: Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

Question64: What happens after issuing the command vi without any additional parameters?

Question65: What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Question66: Which of the following kernel parameters instructs the kernel to suppress most boot messages?

Question67: Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

Question68: Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)

Question69: Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

Question70: Which variable defines the directories in which a Bash shell searches for executable commands?

Question71: After running the command umount /mnt, the following error message is displayed:
umount: /mnt: device is busy.
What is a common reason for this message?

Question72: Which shell command is used to continue background execution of a suspended command?

Question73: What command will generate a list of user names from /etc/passwd along with their login shell?

Question74: Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

Question75: Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

Question76: In order to display all currently mounted filesystems, which of the following commands could be used?
(Choose TWO correct answers.)

Question77: What is the purpose of the Filesystem Hierarchy Standard?

Question78: Which file should be edited to select the network locations from which Debian installation package files are loaded?

Question79: Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

Question80: Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

Question81: Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Question82: What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

Question83: During a system boot cycle, what program is executed after the BIOS completes its tasks?

Question84: Which of the following commands will change the quota for a specific user?

Question85: What does the command mount -a do?

Question86: Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

Question87: In Bash, inserting 1>&2 after a command redirects

Question88: Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

Question89: Which of the following is the device file name for the second partition on the only SCSI drive?

Question90: SIMULATION
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Question91: Which of the following commands will print the last 10 lines of a text file to the standard output?

Question92: Which of the following is correct when talking about mount points?

Question93: Which grep command will print only the lines that do not end with a / in the file foo?

Question94: Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?

Question95: Which of the following commands can be used to determine how long the system has been running?
(Choose TWO correct answers.)

Question96: Which function key is used to start Safe Mode in Windows NT?

Question97: When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?

Question98: Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)

Question99: Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?

Question100: When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
while /tmp/file contains data, why is /tmp/file empty afterwards?

Question101: Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Question102: What is the purpose of the Bash built-in export command?

Question103: Which of the following commands will write a message to the terminals of all logged in users?

Question104: Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/ creation time and does NOT generate them as needed? (Choose TWO correct answers.)

Question105: Which of the following commands displays the contents of a gzip compressed tar archive?

Question106: A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Question107: SIMULATION
Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

Question108: Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?

Question109: What information can the lspci command display about the system hardware? (Choose THREE correct answers.)